<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of users
 *
 * @author Topcarevn
 */
class users extends MY_Controller {
    //put your code here
    public function __construct() {
        parent::__construct();
        $this->load->model('users_m');
    }
    
    function index(){
        $this->list_user();
    }
    
    function list_user($level=FALSE){
        $this->_data['mainmenu']='quantri';
        $this->_data['title_insidepage']='Quan li nguoi dung';
        $this->_data['users'] = $this->users_m->get_users($level);
        $this->_load_view('user_list');
    }
}

?>
